package com.zr.spring.callback;

import java.util.concurrent.TimeUnit;

public class Producer {
    public void create(Consumer consumer) {
        try {
            TimeUnit.MILLISECONDS.sleep(1000);
            System.out.println("我们已经创建好了。。。可以拿走了。。。");
            consumer.done();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
